Item Property (RDO)

       

Returns a specific member of an Remote Data Objects (RDO) collection object either by position or by key.

Syntax

object.Item(index)

The Item property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
index Required. An expression that specifies the position of a member of the collection. If a numeric expression, index must be a number from 1 to the value of the collection's Count property. If a String expression, index must correspond to the key argument specified when the member referred to was added to the collection.

Remarks

Basically, the Item property is used to choose a member of the collection either by ordinal number or by a key value.

If the value provided as index doesn’t match any existing member of the collection, an error occurs.

The Item property is the default method for a collection and is rarely used to reference collection members. Therefore, the following lines of code are equivalent:

Print MyCollection(1)
Print MyCollection.Item(1)